home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / gas-211 / gas / config / tc-mips.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-30  |  2.5 KB  |  92 lines

  1. /* tc-mips.c -- header file for tc-mips.c.
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.    Contributed by the OSF and Ralph Campbell.
  4.    Written by Keith Knowles and Ralph Campbell, working independently.
  5.    Modified for ECOFF support by Ian Lance Taylor of Cygnus Support.
  6.  
  7.    This file is part of GAS.
  8.  
  9.    GAS is free software; you can redistribute it and/or modify
  10.    it under the terms of the GNU General Public License as published by
  11.    the Free Software Foundation; either version 2, or (at your option)
  12.    any later version.
  13.  
  14.    GAS is distributed in the hope that it will be useful,
  15.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.    GNU General Public License for more details.
  18.  
  19.    You should have received a copy of the GNU General Public License
  20.    along with GAS; see the file COPYING.  If not, write to
  21.    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  22.  
  23. #define TC_MIPS
  24.  
  25. #define TARGET_ARCH bfd_arch_mips
  26.  
  27. #define ONLY_STANDARD_ESCAPES
  28. #define BACKSLASH_V
  29. #define WORKING_DOT_WORD    1
  30. #define OLD_FLOAT_READS
  31. #define LOCAL_LABELS_FB
  32.  
  33. #define LOCAL_LABEL(name) ((name)[0] == '$')
  34.  
  35. #define md_undefined_symbol(name)    (0)
  36. #define md_operand(x)
  37.  
  38. #define LITTLE_ENDIAN   1234
  39. #define BIG_ENDIAN      4321
  40.  
  41. /* If neither TARGET_BYTES_BIG_ENDIAN nor TARGET_BYTES_LITTLE_ENDIAN
  42.    is specified, default to big endian.  */
  43. #ifndef TARGET_BYTES_BIG_ENDIAN
  44. #ifndef TARGET_BYTES_LITTLE_ENDIAN
  45. #define TARGET_BYTES_BIG_ENDIAN
  46. #endif
  47. #endif
  48.  
  49. #ifdef TARGET_BYTES_BIG_ENDIAN
  50. #define BYTE_ORDER    BIG_ENDIAN
  51. #else
  52. #define BYTE_ORDER      LITTLE_ENDIAN
  53. #endif
  54.  
  55. #ifndef TARGET_FORMAT 
  56. #ifdef OBJ_AOUT
  57. #ifdef TARGET_BYTES_BIG_ENDIAN
  58. #define TARGET_FORMAT "aout-mips-big"
  59. #else
  60. #define TARGET_FORMAT "aout-mips-little"
  61. #endif
  62. #endif /* OBJ_AOUT */
  63. #ifdef OBJ_ECOFF
  64. #ifdef TARGET_BYTES_BIG_ENDIAN
  65. #define TARGET_FORMAT "ecoff-bigmips"
  66. #else
  67. #define TARGET_FORMAT "ecoff-littlemips"
  68. #endif
  69. #endif /* OBJ_ECOFF */
  70. #endif /* ! defined (TARGET_FORMAT) */
  71.  
  72. struct mips_opcode {
  73.     const char *name;
  74.     const char *args;
  75.     unsigned long match;
  76.     unsigned long mask;  /* used only for error checking */
  77.     unsigned long pinfo; /* Information used for insn/pipeline scheduling. */
  78. };
  79.  
  80. struct mips_cl_insn {
  81.     unsigned long        insn_opcode;
  82.     const struct mips_opcode    *insn_mo;
  83. };
  84.  
  85. #ifndef BFD_ASSEMBLER
  86. #define md_convert_frag(h,f)        {as_fatal ("MIPS convert_frag\n");}
  87. #else
  88. #define md_convert_frag(b,s,f)        {as_fatal ("MIPS convert_frag\n");}
  89. #endif
  90.  
  91. extern int tc_get_register PARAMS ((void));
  92.